﻿/**
 * Chat component class
 */
Chat = function() 
{
	this.message_so = SharedObject.get( "message", false );
}

// send a message to all others participating in the chat session
Chat.prototype.sendMessage = function( mesg, forwarder, hh, mm, ss ) 
{
	this.message_so.send( "receiveMessage", mesg, forwarder, hh, mm, ss);
}

chat = new Chat();

application.onConnect = function( client )
{

	client.chat	= chat;

	application.acceptConnection( client );
	
}
